<!DOCTYPE html> 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="x-ua-compatible" content="ie=7" />
        <title>用户管理</title>
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
        <link rel="stylesheet"  href="{:C('WEB_URL')}Public/admin/style/base.css" />
        <link rel="stylesheet"  href="{:C('WEB_URL')}Public/admin/style/master.css" />
        <script type="text/javascript">
            function del(id){
                if(confirm('确定要删除记录吗?')){
                    var url="{:C('WEB_URL')}/Admin/User/del/id/"+id;
                    $.getJSON(url,function(data){
                        if(data['status']==1){
                            $(".list > tbody").children("#list_"+data['data']).remove();
                        }else{
                            alert(data['info']);
                        }
                    })
                }
            }
        </script>
    </head>
    <body>
        <div id="wrapper">
            <div id="content">
                <div id="main">
                    <h2>普通用户</h2>
					<table width="100%" cellspacing="0" class="list">
                        <thead>
                        <form action="{:U('index')}" method="post" enctype="multipart/form-data">
							手机号:<input type='text' class='inputText' name='username' value="{$_REQUEST['username']}"/>
							<input type='submit' value='搜索' class='btnOrange'>
						</form>
                            <tr>
                                <th width="60">id</th><th>用户名</th><th>电话</th><th>真实姓名</th><th>Email</th><th>注册日期</th><th>最后登录时间</th><!--<<th>操作</th> -->
                            </tr>
                        </thead>
                        <tbody>
                            <volist name='list' id='vo'>
                                <tr align="center" id="list_{$vo.user_id}">
                                    <td>{$vo.user_id}</td>
                                    <td>{$vo.username}</td>
                                    <td>{$vo.tel}</td>
                                    <td>{$vo.realname}</td>
                                    <td>{$vo.email}&nbsp;</td>
                                    <td>{$vo.create_time|date='Y-m-d',###}</td>
                                    <td>{$vo.last_login_time|date='Y-m-d',###}</td>
                                    <!--<td> 
                                        <a href="{:U('edit',array('id'=>$vo['user_id']))}" class="edit">编辑</a>
                                        <span class="del" onClick="del({$vo.user_id})">删除</span>
                                    </td> -->
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                    <p class="hr_10"></p>
                    <div class="pages">{$page} </div>
                </div>
            </div>
        </div>
    </body>
</html>